package javaStudy.线程.runnable;

public class MyRunnableDemo {
    public static void main(String[] args) {
        MyRunnable mr=new MyRunnable();
//创建thread对象，把MyRunnable对象作为构造方法的参数
//        Thread t1=new Thread(mr);
//        Thread t2=new Thread(mr);
        Thread t1=new Thread(mr,"张飞");
        Thread t2=new Thread(mr,"牛魔");
        t1.start();
        t2.start();
    }
}
